81e1ead63bd8742ba790507782192362e0ad4054,violetplugin-activitydiagram/src/main/java/com/horstmann/violet/product/diagram/activity/nodes/DecisionNode.java,DecisionNode,getConnectionPoint,#IEdge#,116

Before Change


        double x = b.getCenterX();
        double y = b.getCenterY();

        Direction d = e.getDirection(this);

        Direction nearestCardinalDirection = d.getNearestCardinalDirection();

After Change


        double x = b.getCenterX();
        double y = b.getCenterY();

        Direction direction = edge.getDirection(this).getNearestCardinalDirection();
        if(direction.equals(Direction.NORTH))
        {
            y = b.getMaxY();